import Vue from 'vue';
import Vuex from 'vuex';
import mutations from './mutations';
import actions from './actions';
import getters from './getters';
import { SAMPLE } from './namespaces';

import samplePage from './modules/samplePage';

Vue.use(Vuex);

const state = {
  userInformation: {
    role: 0,
  },
};

const modules = {
  [SAMPLE]: samplePage,
};

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules,
});
